]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gnome-shell-build-setup.sh: work around removal of gpk-install-package-name
authorOwen W. Taylor <otaylor@fishsoup.net>
Sat, 17 May 2014 19:10:04 +0000 (15:10 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Sat, 17 May 2014 19:10:04 +0000 (15:10 -0400)
gpk-install-package-name was removed in 3.12. Call the D-Bus interface
using gdbus instead.

tools/build/gnome-shell-build-setup.sh

index a3c0cbe6fa992aaacba931afeff4bfd52125fd8a..f75d44d9a60143f820cf22838f10338e1f6130c7 100755 (executable)
@@ -230,7 +230,11 @@ if test "x$system" = xFedora ; then
 
   if test ! "x$missing" = x; then
       echo -n "Installing packages ... "
-      gpk-install-package-name $missing
+      missing_str=
+      for pkg in $missing ; do
+          missing_str="$missing_str${missing_str:+,}\"$pkg\""
+      done
+      gdbus call -e -d org.freedesktop.PackageKit -o /org/freedesktop/PackageKit -m org.freedesktop.PackageKit.Modify.InstallPackageNames 0 "[$missing_str]" "hide-finished,show-warnings"
       echo "done"
   fi
 fi